﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000E6F RID: 3695
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueBuffEnhanceInfo : IMessage<RogueBuffEnhanceInfo>, IMessage, IEquatable<RogueBuffEnhanceInfo>, IDeepCloneable<RogueBuffEnhanceInfo>, IBufferMessage
	{
		// Token: 0x17002EE8 RID: 12008
		// (get) Token: 0x0600A5C3 RID: 42435 RVA: 0x001BE5FF File Offset: 0x001BC7FF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueBuffEnhanceInfo> Parser
		{
			get
			{
				return RogueBuffEnhanceInfo._parser;
			}
		}

		// Token: 0x17002EE9 RID: 12009
		// (get) Token: 0x0600A5C4 RID: 42436 RVA: 0x001BE606 File Offset: 0x001BC806
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueBuffEnhanceInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002EEA RID: 12010
		// (get) Token: 0x0600A5C5 RID: 42437 RVA: 0x001BE618 File Offset: 0x001BC818
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueBuffEnhanceInfo.Descriptor;
			}
		}

		// Token: 0x0600A5C6 RID: 42438 RVA: 0x001BE61F File Offset: 0x001BC81F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueBuffEnhanceInfo()
		{
		}

		// Token: 0x0600A5C7 RID: 42439 RVA: 0x001BE628 File Offset: 0x001BC828
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueBuffEnhanceInfo(RogueBuffEnhanceInfo other) : this()
		{
			this.buffId_ = other.buffId_;
			this.costData_ = ((other.costData_ != null) ? other.costData_.Clone() : null);
			this.oMBGNOPNJBM_ = other.oMBGNOPNJBM_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A5C8 RID: 42440 RVA: 0x001BE680 File Offset: 0x001BC880
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueBuffEnhanceInfo Clone()
		{
			return new RogueBuffEnhanceInfo(this);
		}

		// Token: 0x17002EEB RID: 12011
		// (get) Token: 0x0600A5C9 RID: 42441 RVA: 0x001BE688 File Offset: 0x001BC888
		// (set) Token: 0x0600A5CA RID: 42442 RVA: 0x001BE690 File Offset: 0x001BC890
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BuffId
		{
			get
			{
				return this.buffId_;
			}
			set
			{
				this.buffId_ = value;
			}
		}

		// Token: 0x17002EEC RID: 12012
		// (get) Token: 0x0600A5CB RID: 42443 RVA: 0x001BE699 File Offset: 0x001BC899
		// (set) Token: 0x0600A5CC RID: 42444 RVA: 0x001BE6A1 File Offset: 0x001BC8A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemCostData CostData
		{
			get
			{
				return this.costData_;
			}
			set
			{
				this.costData_ = value;
			}
		}

		// Token: 0x17002EED RID: 12013
		// (get) Token: 0x0600A5CD RID: 42445 RVA: 0x001BE6AA File Offset: 0x001BC8AA
		// (set) Token: 0x0600A5CE RID: 42446 RVA: 0x001BE6B2 File Offset: 0x001BC8B2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public float OMBGNOPNJBM
		{
			get
			{
				return this.oMBGNOPNJBM_;
			}
			set
			{
				this.oMBGNOPNJBM_ = value;
			}
		}

		// Token: 0x0600A5CF RID: 42447 RVA: 0x001BE6BB File Offset: 0x001BC8BB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueBuffEnhanceInfo);
		}

		// Token: 0x0600A5D0 RID: 42448 RVA: 0x001BE6CC File Offset: 0x001BC8CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueBuffEnhanceInfo other)
		{
			return other != null && (other == this || (this.BuffId == other.BuffId && object.Equals(this.CostData, other.CostData) && ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(this.OMBGNOPNJBM, other.OMBGNOPNJBM) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A5D1 RID: 42449 RVA: 0x001BE734 File Offset: 0x001BC934
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.BuffId != 0U)
			{
				num ^= this.BuffId.GetHashCode();
			}
			if (this.costData_ != null)
			{
				num ^= this.CostData.GetHashCode();
			}
			if (this.OMBGNOPNJBM != 0f)
			{
				num ^= ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(this.OMBGNOPNJBM);
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A5D2 RID: 42450 RVA: 0x001BE7A9 File Offset: 0x001BC9A9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A5D3 RID: 42451 RVA: 0x001BE7B1 File Offset: 0x001BC9B1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A5D4 RID: 42452 RVA: 0x001BE7BC File Offset: 0x001BC9BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.costData_ != null)
			{
				output.WriteRawTag(18);
				output.WriteMessage(this.CostData);
			}
			if (this.OMBGNOPNJBM != 0f)
			{
				output.WriteRawTag(101);
				output.WriteFloat(this.OMBGNOPNJBM);
			}
			if (this.BuffId != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.BuffId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A5D5 RID: 42453 RVA: 0x001BE838 File Offset: 0x001BCA38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.BuffId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BuffId);
			}
			if (this.costData_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.CostData);
			}
			if (this.OMBGNOPNJBM != 0f)
			{
				num += 5;
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A5D6 RID: 42454 RVA: 0x001BE8A0 File Offset: 0x001BCAA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueBuffEnhanceInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.BuffId != 0U)
			{
				this.BuffId = other.BuffId;
			}
			if (other.costData_ != null)
			{
				if (this.costData_ == null)
				{
					this.CostData = new ItemCostData();
				}
				this.CostData.MergeFrom(other.CostData);
			}
			if (other.OMBGNOPNJBM != 0f)
			{
				this.OMBGNOPNJBM = other.OMBGNOPNJBM;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A5D7 RID: 42455 RVA: 0x001BE921 File Offset: 0x001BCB21
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A5D8 RID: 42456 RVA: 0x001BE92C File Offset: 0x001BCB2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 18U)
				{
					if (num != 101U)
					{
						if (num != 112U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.BuffId = input.ReadUInt32();
						}
					}
					else
					{
						this.OMBGNOPNJBM = input.ReadFloat();
					}
				}
				else
				{
					if (this.costData_ == null)
					{
						this.CostData = new ItemCostData();
					}
					input.ReadMessage(this.CostData);
				}
			}
		}

		// Token: 0x04004363 RID: 17251
		private static readonly MessageParser<RogueBuffEnhanceInfo> _parser = new MessageParser<RogueBuffEnhanceInfo>(() => new RogueBuffEnhanceInfo());

		// Token: 0x04004364 RID: 17252
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004365 RID: 17253
		public const int BuffIdFieldNumber = 14;

		// Token: 0x04004366 RID: 17254
		private uint buffId_;

		// Token: 0x04004367 RID: 17255
		public const int CostDataFieldNumber = 2;

		// Token: 0x04004368 RID: 17256
		private ItemCostData costData_;

		// Token: 0x04004369 RID: 17257
		public const int OMBGNOPNJBMFieldNumber = 12;

		// Token: 0x0400436A RID: 17258
		private float oMBGNOPNJBM_;
	}
}
